<div class="us_det vm">
	<h1><span></span>用户信息编辑</h1>

	<div class="con">
		<dl class="user clearfix">
			<dt>
				<img src="images/pic1.jpg" alt="个人头像">
				<p>{{name}}</p>
				<span></span>
			</dt>
			<dd>
				<form class="adduser" name='userform' novalidate>
					<!-- 第二个模块 -->
					<div class="side">
						<label>用户账号:&nbsp;
							<input type="text" name="account" ng-model="account" ng-disabled="changeform" ng-focus="nameblur(false)" ng-blur="nameblur(true)" required>
						</label>
						<div class="errorBox">
						    <span ng-show="nameblur1 && userform.account.$dirty">
						    	<span ng-show="userform.account.$error.required">请填写用户账号</span>
						    </span>
				   		</div>

						<div class="sex clearfix disabled">
							<span>性别:&nbsp;&nbsp;</span>
							<label class="checked">男
								<input type="radio" name="sex" value="男" ng-model="sex" ng-disabled="changeform" ng-click="checkSex($event)"></input>
								<span><em></em></span>
							</label>
							<label>女
								<input type="radio" name="sex" value="女" ng-disabled="changeform" ng-click="checkSex($event)" ng-model="sex"></input>
								<span><em></em></span>
							</label>
						</div>
						
						<label>密码:&nbsp;
							<input type="text" name="password" ng-model="password" ng-disabled="changeform" ng-focus="passwordblur(false)" ng-blur="passwordblur(true)" required>
						</label>
						<div class="errorBox">
						    <span ng-show="passwordblur1 && userform.password.$dirty">
						    	<span ng-show="userform.password.$error.required">请输入用户密码</span>
						    </span>
				   		</div>

						<label>地址:&nbsp;
							<input type="text" class="address" name="address" ng-model="address" required ng-disabled="changeform" ng-focus="addressblur(false)" ng-blur="addressblur(true)">
						</label>
						<div class="errorBox">
						    <span ng-show="addressblur1 && userform.address.$dirty">
						    	<span ng-show="userform.address.$error.required">请输入用户地址</span>
						    </span>
				   		</div>
					</div>

					<!-- 第二个模块 -->
					<div class="side">
						<label>昵称:&nbsp;
							<input type="text" name="name2" ng-model="name2" required ng-disabled="changeform" ng-focus="name2blur(false)" ng-blur="name2blur(true)">
						</label>
						<div class="errorBox">
						    <span ng-show="name2blur1 && userform.name2.$dirty">
						    	<span ng-show="userform.name2.$error.required">请输入用户昵称</span>
						    </span>
				   		</div>

						<label>注册时间:&nbsp;
							<input type="text" ng-model="startTime" required disabled="disabled">
						</label>
						<div class="errorBox"></div>

						<label>最后活跃时间:&nbsp;
							<input type="text" ng-model="lastTime" required disabled="disabled">
						</label>
						<div class="errorBox"></div>

					</div>
					<div class="side">
						<button ng-click="write()" ng-show="changeform">编辑</button>
						<button ng-click="save()" ng-show="!changeform" ng-disabled="userform.$invalid">保存</button>
						<button ng-click="exit()" ng-show="!changeform">取消</button>
					</div>
				</form>
			</dd>
		</dl>

		<table>
			<tr>
				<th>
					<input type="checkbox" class="allCheck">
				</th>
				<th>设备ID</th>
				<th>在线状态</th>
				<th>产品类型</th>
				<th>用户地址</th>
				<th>激活时间</th>
				<th>最后活跃时时间</th>
				<th>绑定帐号</th>
				<th>功能</th>
			</tr>
			<tr ng-repeat="x in opints | filter : search | filter : stateStr.str | limitTo : lineNumber" userID="{{x.id}}">
				<td>
					<input type="checkbox">
				</td>
				<td>{{x.devId}}</td>
				<td>{{x.state}}</td>
				<td>{{x.class}}</td>
				<td>{{x.address}}</td>
				<td>{{x.startTime}}</td>
				<td>{{x.lastUseTime}}</td>
				<td>{{x.phone}}</td>
				<td>
					<a href="javascript:void(null)">详情</a>
				</td>
			</tr>
		</table>

		<div class="nothing" ng-show="hasSign">
			对不起，没有获取到你要的信息
		</div>
	</div>
</div>